package com.thwj.project.biz.domain;

    import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thwj.common.annotation.Excel;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

;

/**
 * 业务-活动banner对象 biz_banner
 *
 * @author generate
 * @date 2023-06-16
 */

@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("biz_banner")
public class Banner extends Model<Banner>{
private static final long serialVersionUID=1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;


    private Integer bannerPosition;
    /** 名称 */
            @Excel(name = "名称")
    private String bannerName;

    /** 图片 */
            @Excel(name = "图片")
    private String bannerPic;

    /** 类型（1：小程序页面 2：H5 web页面） */
            @Excel(name = "类型", readConverterExp = "1=：小程序页面,2=：H5,w=eb页面")
    private Integer actionType;

    /** 跳转地址 */
            @Excel(name = "跳转地址")
    private String actionUrl;

    /** 有效期开始 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "有效期开始", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    /** 有效期结束 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "有效期结束", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    /** 是否有效 */
            @Excel(name = "是否有效")
    private Boolean valid;

    /** 创建时间 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;




    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
